namespace TimeMachine.Engine.Vcs
{
	public static class SourceFilesExtension
	{
		public static bool IsSourceFile(this ISourcesSettings sourcesSettings, string filename)
		{
			return sourcesSettings.SourceFilenameRE.IsMatch(filename);
		}

		public static bool IsInTrunk(this ISourcesSettings sourcesSettings, string filename)
		{
			return sourcesSettings.TrunkRE.IsMatch(filename);
		}
	}
}